package com.yanqu.road.server.cmd.activity.feast.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ShanHeFeastProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.activity.feast.ShanHeFeastMgr;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = GameProtocol.S_SHAN_HE_FEAST_SYNC_ALLOT_MOUNT_FROM_CROSS, desc = "跨服同步宗门灵峰分配")
public class FeastSyncAllotMountFromCrossCmd implements Command {

    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        ShanHeFeastProto.CrossFeastSyncAllotMountMsg reqMsg = ShanHeFeastProto.CrossFeastSyncAllotMountMsg.parseFrom(packet.getBytes());
        ShanHeFeastMgr.syncMountAllot(reqMsg);
    }
}